import Vue from 'vue';
import VueRouter from 'vue-router';

Vue.use(VueRouter);

const routes = [
    {
        path: '/',
        name: 'App',
        redirect: '/loading',
    },
    {
        path: '/loading',
        name: 'Loading',
        component: () => import(/* webpackChunkName: "loading" */ '../views/loading/index.vue'),
    },
    {
        path: '/home',
        name: 'Home',
        component: () => import(/* webpackChunkName: "main" */ '../views/home/index.vue'),
    },
    {
        path: '/question',
        name: 'Question',
        component: () => import(/* webpackChunkName: "main" */ '../views/question/index.vue'),
    },
    {
        path: '/over',
        name: 'Over',
        component: () => import(/* webpackChunkName: "main" */ '../views/over/index.vue'),
    },
];

const router = new VueRouter({
    routes,
});

export default router;
